package com.carkeeper.service.serviceFallback;

import com.carkeeper.dto.BillDTO;
import com.carkeeper.service.BillFeign;
import feign.hystrix.FallbackFactory;

import java.util.ArrayList;
import java.util.List;

public class BillFallbackFactory implements FallbackFactory<BillFeign> {
    @Override
    public BillFeign create(Throwable throwable) {
        return new BillFeign() {
            @Override
            public List<BillDTO> findAll(Long storeId, Integer payState) {
                return new ArrayList<>();
            }
        };
    }
}
